﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Medianamik.Core.CodeGeneration
{
    public class SqlNameGenerator
    {
        private NodeType _nodeType;

        public SqlNameGenerator(NodeType pNodeType)
        {
            _nodeType = pNodeType;
        }

        public string TableName
        {
            get
            {
                return string.Concat("[dbo].[gen_", _nodeType.Name, "]");  
            }
        }

        public string TableNameSimple
        {
            get
            {
                return string.Concat("gen_", _nodeType.Name);
            }
        }

        public string ViewName
        {
            get
            {
                return string.Concat("[dbo].[vw_gen_", _nodeType.Name, "]");  
            }
        }

        public string PrimaryKeyName
        {
            get
            {
                return string.Concat("[PK_gen_", _nodeType.Name, "]"); 
            }
        }

    }
}
